package com.itheima.api.hashmap.demo03;

import java.util.HashMap;

public class HashMapDemo01 {

    public static void main(String[] args) {

        HashMap<String, String> hashMap = new HashMap<String, String>();

        hashMap.put("stu001", "张三");
        hashMap.put("stu002", "李四");
        hashMap.put("stu003", "王五");

        hashMap.forEach((key, value) -> System.out.println(key + "----" + value));

    }

}
